<template>
  <div>
    <el-card>
      <el-tabs
        type="border-card"
        class="fongig_tab"
        @tab-click="handleTabClick"
        v-model="activeName"
      >
        <el-tab-pane label="系统配置" name="system">
          <system />
        </el-tab-pane>
        <el-tab-pane label="登录设置" name="loginConfig">
          <loginConfig />
        </el-tab-pane>
        <el-tab-pane label="网络防火墙配置" name="firewall">
          <firewall />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script  setup>
import { ref } from 'vue'
import system from '@/views/disposition/overall/component/stystem.vue'
import loginConfig from '@/views/disposition/overall/component/loginConfig.vue'
import firewall from '@/views/disposition/overall/component/firewall.vue'

const activeName = ref('system')

// 切换tab
const handleTabClick = (tab, event) => {
  console.log(tab.props, event)
}
</script>

<style lang="scss" scoped>
.fongig_tab {
  min-height: 600px;
}
</style>
